RUN THE ESTIMATION AND COUNTERFACTUAL SIMULATION ROUTINES BY LOCATIONS

FROM THE PAPER:
Child Care Markets, Parental Labor Supply, and Child Development

BY:
Samuel Berlinski, Maria Marta Ferreyra, Luca Flabbi and Juan David Martin

*****************************************************************************************************
ROUTINE SCRIPTS

The folder should include the following scripts:

- 01_Estimate_LX:        estimates the model parameters for location X,
where X= 1, 2, 3, 4.

- 02_CFs_LX:             simulates equilibria for the counterfactual experiments defined in the paper for location X,
 where X= 1, 2, 3, 4.

*****************************************************************************************************
FUNTION SCRIPTS

The folder should include the following function scripts:

- simul_market:      simulates the market equilibrium for a given policy setup and a model 
                     parameter vector.

- simul_market_PP:   simulates the market equilibrium for a the public provision policy setup and a  
                     model parameter vector.

- functions:         toolbox of different functions that assist in the simulation of market 
                     equilibria and parameter estimation.

*****************************************************************************************************
INPUTS AND SOURCES


The folder should include:

- Location-SpecificMoments.xlsx: the sample moments used in the SMM estimation procedure.

- Estimates_01.RData: the vector of estimates for the aggregate model

- SimData_LX.RData: the simulated ex ante heterogeneity in Location X based on the data,
where X= 1, 2, 3, 4.

It may also include:

- EstimatesLX_01.RData: the estimated model parameters fro Location X, generated by the 01_EstimateLX.R routine,
where X= 1, 2, 3, 4.


*****************************************************************************************************
STARTING POINT

Start by updating line

"folderpath <- '~/EstimationCodeLocation/'

from the "START" sections in the scripts:

01_Estimate_LX
02_CFs_LX

where the single-quoted text should be replaced by the desired folder path in your computer.


*****************************************************************************************************
ESTIMATION

Run 01_Estimate_LX to generate a new vector of parameter estimates to be called EstimatesLX_01.RData or any other name


*****************************************************************************************************
COUNTERFACTUALS

Run 02_CFs_LX to generate counterfactual experiments.

If the name of the parameter estimates has been change then update the line 

"load('EstimatesLX_01.RData')"

from the "INPUT" section, where the single-quoted text should be replaced by the desired name of the new file of estimated parameters.

*****************************************************************************************************
END